home *** CD-ROM | disk | FTP | other *** search
- /*
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒ ▒
- ▒ ▒
- ▒ Neuromancer's Graphics Library ▒
- ▒ Version 1.0c ▒
- ▒ ▒
- ▒ This routine demonstrates ellipse and filled ellipsed ▒
- ▒ primitives. ▒
- ▒ ▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒ ▒
- ▒ Project: MTLIB01.LIB ▒
- ▒ DEMO5.CPP ▒
- ▒ ▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- */
- #include <iostream.h>
- #include <stdlib.h>
- #include <conio.h>
- #include "video.h"
- #include "ellipse.h"
-
-
- void main(void)
- {
- int x,y,major, minor,color;
- int ch;
-
-
- mtSetVGAMode(); //Set up VGA Mode
-
- mtSetWindow(15,15,304,184); //set up clip region
- mtClrScr(15); //clear region to color 15
-
- while(!kbhit())
- {
- x = random(320);
- y = random(200);
- major = random(40);
- color = random(256);
- minor = random(40);
-
- mtCEllipse(x,y,major,minor,color);
- }
-
- mtClrScr(0);
-
- getch();
-
- while(!kbhit())
- {
- x = random(320);
- y = random(200);
- major = random(40);
- color = random(256);
- minor = random(40);
-
- mtCFillEllipse(x,y,major,minor,color);
-
- }
-
- getch();
-
- mtSetTextMode();
-
- cout << "Thank you for using the library!" << endl;
-
- exit(0);
-
- }
-
-
-
-
-
-
-
-